/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Entity;

import java.util.List;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

/**
 *
 * @author itachiu
 */
@Entity
@DiscriminatorValue("Veterinarian")
public class Veterinarian extends Person {
    String Focus_of_practice;
    String specialities;
    int salary;
    String graduateAt;
    @OneToMany
    List<Appointment> appoiments; /**has many appointments**/

    public List<Appointment> getAppoiments() {
        return appoiments;
    }

    public void setAppoiments(List<Appointment> appoiments) {
        this.appoiments = appoiments;
    }


    public Veterinarian() {
        super();
    }
    
    public String getFocus_of_practice() {
        return Focus_of_practice;
    }

    public void setFocus_of_practice(String Focus_of_practice) {
        this.Focus_of_practice = Focus_of_practice;
    }

    public String getSpecialities() {
        return specialities;
    }

    public void setSpecialities(String specialities) {
        this.specialities = specialities;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public String getGraduateAt() {
        return graduateAt;
    }

    public void setGraduateAt(String graduateAt) {
        this.graduateAt = graduateAt;
    }
    
}
